home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
c
/
mc51bugs.zip
/
Q30411
< prev
next >
Wrap
Text File
|
1988-07-21
|
903b
|
41 lines
Q30411 Incorrect Error Message Generated with Syntax Error
C Compiler
5.00 5.10
MS-DOS
Problem:
The following example generates the "C2122: typedef specifies
different structure" error message. This error is misleading because
there is no typedef contained in the code.
The compiler is not flagging the missing semicolon (;) after the
structure declaration.
The following is the sample code:
#include <stdio.h>
void main( void );
struct abc
{
int data;
struct abc *lc;
struct abc *rc;
} /* missing ; */
void main()
{
printf("Hello world.\n");
}
Response:
Microsoft confirmed this to be a problem in C Compiler Versions
5.00 and 5.10.
Microsoft is researching this problem and will post new information
as it becomes available.
Keywords: buglist5.00 buglist5.10
Updated 88/07/21 03:19